#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
    char a[10000][11],c[11];
    int i,j,n=0;
    FILE *p;
    if((p=fopen("case1.in.txt","r"))==NULL)
        exit(0);
    /*while(fgets(a[n],11,p)!=NULL)
    {
        n++;
    }
    fclose(p);
    for(i=0;i<n-1;i++)
      {

       for(j=0;j<n-1-i;j++)
    {
        if(strcmp(a[j],a[j+1])>0)
        {
            strcpy(c,a[j]);
            strcpy(a[j],a[j+1]);
            strcpy(a[j+1],c);
        }

    }
      }*/
    if((p=fopen("answer.txt","w"))==NULL)
        exit(0);
    for(i=0;i<n;i++)
        fputs(a[i],p);
    fclose(p);

}
